var collision=0; //0: no collision 1: collision
if(
    oPlayer.aboveGround==aboveGround && rectOverlap(
        oPlayer.x,oPlayer.y+oPlayer.dy,
        oPlayer.x+sprite_width,oPlayer.y+oPlayer.sprite_height+oPlayer.dy,
        x,y,x+sprite_width,y+sprite_height
    )
)
    collision=1;
else
    collision=0;
      
if(collision==1) {
      score+=deltaScore;
      instance_destroy();
}
  
